syntax-check: quote the first argument to AC_DEFINE
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 30 Jan 2015 14:06:22 +0000 (15:06 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 30 Jan 2015 14:27:36 +0000 (15:27 +0100)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
cfg.mk
configure.ac

diff --git a/cfg.mk b/cfg.mk
index e4458acd7d3319fdca332ed0c1912d9f2ca4a96a..0dc73df0f9c3258b39ad801a153b1fc9d2e92d81 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -20,7 +20,6 @@ local-checks-to-skip = \
     \
     sc_program_name \
     sc_bindtextdomain   \
-    sc_m4_quote_check \
     sc_prohibit_assert_without_use \
     sc_prohibit_dirent_without_use \
     sc_prohibit_empty_lines_at_EOF \
index 196af1d3c983b9060a8932f2302172011b827100..335065727a65c1e92a2f872432515cd40c1d0628 100644 (file)
@@ -68,13 +68,13 @@ AS_IF([test x$with_soup != xno ], [
   ])
   AS_IF([test x$have_soup = xyes], [
     PKG_CHECK_MODULES(OT_DEP_SOUP, $SOUP_DEPENDENCY)
-    AC_DEFINE(HAVE_LIBSOUP, 1, [Define if we have libsoup.pc])
+    AC_DEFINE([HAVE_LIBSOUP], 1, [Define if we have libsoup.pc])
     with_soup=yes
     save_CFLAGS=$CFLAGS
     CFLAGS=$OT_DEP_SOUP_CFLAGS
     have_libsoup_client_certs=no
     AC_CHECK_DECL([SOUP_SESSION_TLS_INTERACTION], [
-        AC_DEFINE(HAVE_LIBSOUP_CLIENT_CERTS, 1, [Define if we have libsoup client certs])
+        AC_DEFINE([HAVE_LIBSOUP_CLIENT_CERTS], 1, [Define if we have libsoup client certs])
         have_libsoup_client_certs=yes
         ], [], [#include <libsoup/soup.h>])
     AS_IF([test x$enable_libsoup_client_certs = xyes && test x$have_libsoup_client_certs != xyes], [
@@ -112,7 +112,7 @@ AS_IF([ test x$with_gpgme != xno ], [
        AC_MSG_ERROR([gpgme is enabled but could not be found])
    ])
    AS_IF([ test x$have_gpgme = xyes], [
-       AC_DEFINE(HAVE_GPGME, 1, [Define if we have gpgme])
+       AC_DEFINE([HAVE_GPGME], 1, [Define if we have gpgme])
        with_gpgme=yes
        AC_PATH_PROG(GPGVPATH, [gpgv2 gpgv])
        AC_SUBST(GPGVPATH)
@@ -138,7 +138,7 @@ AS_IF([ test x$with_libarchive != xno ], [
        AC_MSG_ERROR([libarchive is enabled but could not be found])
     ])
     AS_IF([ test x$have_libarchive = xyes], [
-        AC_DEFINE(HAVE_LIBARCHIVE, 1, [Define if we have libarchive.pc])
+        AC_DEFINE([HAVE_LIBARCHIVE], 1, [Define if we have libarchive.pc])
        PKG_CHECK_MODULES(OT_DEP_LIBARCHIVE, $LIBARCHIVE_DEPENDENCY)
         save_LIBS=$LIBS
         LIBS=$OT_DEP_LIBARCHIVE_LIBS
@@ -167,7 +167,7 @@ AS_IF([ test x$with_selinux != xno ], [
        AC_MSG_ERROR([SELinux is enabled but could not be found])
     ])
     AS_IF([ test x$have_selinux = xyes], [
-        AC_DEFINE(HAVE_SELINUX, 1, [Define if we have libselinux.pc])
+        AC_DEFINE([HAVE_SELINUX], 1, [Define if we have libselinux.pc])
        PKG_CHECK_MODULES(OT_DEP_SELINUX, $SELINUX_DEPENDENCY)
        with_selinux=yes
     ], [
@@ -223,7 +223,7 @@ AC_ARG_ENABLE(static_deltas,
                              [Enable static delta code (default: yes)]),,
               [enable_static_deltas=yes])
 AS_IF([test x$enable_static_deltas = xyes], [
-    AC_DEFINE(BUILDOPT_STATIC_DELTAS, 1, [Define if static deltas are enabled])
+    AC_DEFINE([BUILDOPT_STATIC_DELTAS], 1, [Define if static deltas are enabled])
 ])
 AM_CONDITIONAL(BUILDOPT_STATIC_DELTAS, test x$enable_static_deltas = xyes)